Skip to content

fix(checkout): enable runtime repository Checkout without service restart - #56

Merged
servicememeai merged 2 commits into
devfrom
fix/p0-checkout-runtime-20261116
Nov 16, 2026
Merged

servicememeai merged 2 commits into
devfrom
fix/p0-checkout-runtime-20261116

Conversation

@servicememeai

Copy link
Copy Markdown

P0: full dynamic Checkout with no service restart

  • Always register the C FileOp Checkout barrier at native startup. Ordinary OFF repos only perform a lightweight feature check; one read per repository for same-repo operations, no Guard scan.
  • C native preparation and final Branch(master) checks read cf_repo_feature rather than deprecated global checkout_enabled.
  • Go cfReadRepoFeatures honors current database Checkout row even if legacy global switch is false. Probe Guard Schema on startup; chosen repos fail closed if unavailable.
  • Prevent old Agent2 exclusive Guard renewals from resurrecting a lease after policy is disabled: recheck current feature under the Branch lock.
  • Native fixture verifies OFF at startup → ON without re-register/restart; full Go fileserver test suite passes; doc/checkout-dynamic-runtime-p0.md.

Paired dependency: Hub PR on same branch eaopen/cloudfile-hub; requires Hub to remove global toggle and reject active leases before disable. Deploy C/Go/Hub together and test real API/Agent2. No production deployment performed.

Verification: python3 tests/cf-lock/run.py PASS; cd fileserver && go test . -count=1 PASS; git diff --check PASS.

@servicememeai
servicememeai merged commit 8fca7f5 into dev Nov 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants